﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleList.aspx.cs" Inherits="Manage_WebPages_UserInfo_RoleList" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.4.2.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>权限查询</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <link href="../../js/bootstrap/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="../../js/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        function select() {
            $('#btnSelect').click();
        };
    </script>
</head>
<body>
<form id="form1" runat="server">
    <div>
        <div style="border: 1px solid cornflowerblue; height: 50px; margin: 1px 1px;">
            <div class="form-inline" style="margin-left: 20px; margin-top: 10px;">
                <label class="control-label" for="">角色名称:</label>
                <input type="text" class="input-small" placeholder="" runat="server" id="txtRoleName"/>
                <button type="button" class="btn btn-primary" runat="server" id="btnSelect" OnServerClick="btnSelect_Click">检索</button>
                <button type="button" class="btn" onclick="openDialogResize('RoleManager.aspx?action=add', '600', '500');">新增</button>
            </div>
        </div>
        <br/>
        <table class="table table-hover table-bordered table-striped">
            <thead>
            <tr>
                <th>角色名称</th>
                <th >角色描述</th>
                <th align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <tr>

                        <td><%#Eval("RoleName").ToString() %></td>
                        <td><%#Eval("RoleDescription").ToString() %></td>

                        <td align="center">
                            <a href="#" onclick="openDialogResize('<%#"Function2Role.aspx?id=" + Eval("RoleID").ToString() %>', '600', '500');">分配权限</a> |
                            <a href="#" onclick="openDialogResize('<%#"RoleManager.aspx?action=edit&id=" + Eval("RoleID").ToString() %>', '600', '500');">修改</a> |
                            <asp:LinkButton ID="linkBtnDel" runat="server" CommandName="del" CssClass="link03" CommandArgument='<%# Eval("RoleID") %>' Text="删除" OnClick="linkBtnDel_Click" OnClientClick="return confirm('确定要删除吗?');"/>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            </tbody>
        </table>
        <div class="pagin fr">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10"
                                  FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                                  NumericButtonCount="9" onpagechanged="AspNetPager1_PageChanged" ShowPageIndexBox="Never">
                >
            </webdiyer:AspNetPager>
        </div>
    </div>
</form>
</body>
</html>